import { createApp } from "vue"
import App from "./App.vue"
import router from "./router"
import { store } from "./store"
import ElementPlus from "element-plus"
import "./mock/index" // 需要请求本地的mock
import "element-plus/lib/theme-chalk/index.css"
import "nprogress/nprogress.css"
import "./styles/index.less"
// 引用自定义指令
import directive from "./directive/index"


const app = createApp(App)
// 自定义全局参数
app.config.globalProperties.$custom_var = "自定义全局参数"
directive(app)
app.use(ElementPlus)
app.use(router)
  .use(store)
  .mount("#app")
